﻿using Microsoft.AspNetCore.DataProtection.KeyManagement;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Application.Admins.Dto
{
    public class AdminCreateUpdateDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long AdminId { get; set; }
        /// <summary>        
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>        
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>        
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 末次登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 末次登录IP
        /// </summary>
        public string LastLoginIP { get; set; }
    }

    public class AdminListDto: AdminCreateUpdateDto
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }        
    }
}
